package com.yuzhitong.shapi.model;

import com.yuzhitong.shapi.base.Contents;
import com.yuzhitong.shapi.base.net.BaseListBean;
import com.yuzhitong.shapi.bean.MovieBean;
import com.yuzhitong.shapi.contract.MovieListContract;
import com.yuzhitong.shapi.net.RetrofitClient;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Brsya
 * CreateDate: 2022/5/8  15:50
 * Description:
 * 影视列表
 */
public class MovieListModel implements MovieListContract.Model {
    @Override
    public Observable<BaseListBean<MovieBean>> getHot(Map<String, Object> par) {
        return RetrofitClient.getInstance().getApi().getHot(Contents.BASE_URL + "/videos/getHot", par);
    }

    @Override
    public Observable<BaseListBean<MovieBean>> getDayHot(Map<String, Object> par) {
        return RetrofitClient.getInstance().getApi().getDayHot(Contents.BASE_URL + "/videos/getDayTop", par);
    }
}
